package com.ah.shanxi_demo.api;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.*;
import java.util.List;

/**
 * @author Tao on 2020/7/24
 */
@RestController
@Api(value = "陕西高速", description = "陕西高速-测试服务")
@RequestMapping(value = "/shanxi", produces = "application/json; charset=UTF-8")
public class APIController {

    private static String UTF8 = "UTF-8";

    @ApiOperation(value = "银行卡列表接口", notes = "银行卡列表接口")
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "银行卡列表接口"),
            @ApiResponse(code = 500, message = "500(系统错误)", response = String.class)
    })
    @RequestMapping(value = "/test1", method = RequestMethod.POST, produces = "application/json; charset=UTF-8")
    @ResponseBody
    public String test1(
            @ApiParam(value = "参数", required = true) @RequestBody List<Integer> policyIdList) {

        String string = JSON.toJSONString(policyIdList);
        System.out.println(string);

        return string;
    }

    public static void main(String[] args) {
        System.out.println(1);

    }
}
